-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar component #1325
Calendar component #1325
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @matheusps! Thanks for opening this PR. Please set the applicable project fields and labels to this PR to improve our workflow. You can do this by clicking on the "Projects" tab on the right side of the PR page and expanding the tab to set other fields, and by clicking on the "Labels" tab on top of it and selecting the applicable labels. |
7015412
to
4be7e1a
Compare
4be7e1a
to
1898ce7
Compare
964c79a
to
b508d74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
{/** Some react-aria components require this to translate */} | ||
<I18nProvider locale={locale}>{children}</I18nProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we use their provider instead then? Or maybe port whatever makes this required to our own locale provider? It seems to me that it does the same job we're doing here.
Or maybe just use the provider from react-aria on the components that require it.
Ref: https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/i18n/src/context.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried using it on each component, but it caused DX issues since it must wrap the hooks. Though in using the locale instead of wrapping it - buuut it would make the lib stuck on react-aria to do intl even in non-react-aria components. So, I've decided to plug into the LocaleProvider :)
f20a7c7
to
d77478b
Compare
Summary
invariant()
utilwarning()
utilextended-components
layerExamples
Controled
Localized